import Vue from 'vue'
import Vuex from "vuex"
import user from './modules/user.js'
import router from './modules/router.js'
import app from './modules/app.js'
Vue.use(Vuex)

//响应组件中的动作
const actions = {}
//操作数据
const mutations = {}
//存储数据
const state = {}
const modules = {user,router,app}
//子vuex状态模块注册
// console.log(modules)
const store = new Vuex.Store({
	modules,
	state,
	mutations,
	actions,
})
export default store
